// get和set

class Phone {
  get price() {
    console.log("价格属性被读取");
    return 25;
  }

  set price(newValue) {
    console.log(newValue + "被设置");
  }
}

// 实例化对象
let s = new Phone();

// console.log(s.price);
s.price = 34;
